﻿using Inovout.Models;

namespace Inovout.Security
{
    partial class FormsUser : User
    {
        public FormsUser()
        {
            Roles = new DataObjectSet<Role>();
        }
        [Alias("密码")]
        public virtual string Password { get; set; }
        public virtual string PasswordSalt { get; set; }
 
        public override bool Equals(DataObject that)
        {
            return base.Equals(that) && ValueComparer.Equals(this.Name, ((FormsUser)that).Name);
        }
    }
}
